#define  _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
void Heaptest1()
{
	int a[] = { 1,4,7,8,6,5,2,3,9 };
	HP heap;
	HeapInit(&heap);
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HeapPush(&heap, a[i]);
	}

	while (!HeapEmpty(&heap))
	{
		printf("%d ", HeapTop(&heap));
		HeapPop(&heap);
	}
	HeapDestory(&heap);
}
int main()
{
	Heaptest1();
	return 0;
}